Interface sjl.SequenceContainer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sjl.SequenceContainer

public interface SequenceContainer
extends Object
extends Container
Defines the methods allowed on sequence container types. The supported containers are currently: List, Vector and Deque.

Copyright © 1996 Finn Bock

See Also:
List, Vector, Deque

Method Index

 o back()
Return the last element in the container.
 o erase(Iterator)
Erase the element pointed to by position.
 o erase(Iterator, Iterator)
Erase the elements in the range [first,last).
 o front()
Return the first element in the container.
 o insert(Iterator, InputIterator, InputIterator)
Insert copies of [first, last) before position.
 o insert(Iterator, int, Object)
Insert n copies of object before position.
 o insert(Iterator, Object)
Insert a copy of object before position.

Methods

 o insert
  public abstract Iterator insert(Iterator position,
                                  Object object)
Insert a copy of object before position.
 o insert
  public abstract void insert(Iterator position,
                              int n,
                              Object object)
Insert n copies of object before position.
 o insert
  public abstract void insert(Iterator position,
                              InputIterator first,
                              InputIterator last)
Insert copies of [first, last) before position.
 o erase
  public abstract void erase(Iterator position)
Erase the element pointed to by position.
 o erase
  public abstract void erase(Iterator first,
                             Iterator last)
Erase the elements in the range [first,last).
 o front
  public abstract Object front()
Return the first element in the container. Undefined is the container is empty.
 o back
  public abstract Object back()
Return the last element in the container. Undefined is the container is empty.

All Packages  Class Hierarchy  This Package  Previous  Next  Index